package com.click.app.dao;

import com.click.app.model.Material;
import com.click.app.model.PurchaseDetail;
import java.util.Date;
import java.util.List;
/**
 * @author Joel Chuca Condo
 * @date 04/05/2009
 */
public interface PurchaseDetailDao extends GenericDao<PurchaseDetail, Long> {
    List<PurchaseDetail> findByMaterial(Material material);
    List<PurchaseDetail> findByMaterial(Long id);
    List<PurchaseDetail> findByMaterialPeriod(Material material, Date initDate, Date endDate);
    List<PurchaseDetail> findByMaterialPeriod(Long id, Date initDate, Date endDate);
    List<Material> findByMaterialPeriod();
    List<PurchaseDetail> findByMaterialStockNoCero(Long id);
}
